<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <h2>get请求</h2>
    <form action="/req" method="get">
        <p><input type="text" name="name" placeholder="请输入用户名"></p>
        <p><input type="password" name="password" placeholder="请输入密码"></p>
        <p><input type="submit" value="登录"></p>
    </form>
</div>
<div>
    <h2>Post请求</h2>
    <form action="/req" method="post">
        <p><input type="text" name="name" placeholder="请输入用户名"></p>
        <p><input type="password" name="password" placeholder="请输入密码"></p>
        <p><input type="submit" value="登录"></p>
    </form>
</div>
</body>
</html>